package com.angel.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.angel.bean.Prescription;

@Mapper
public interface PrescriptionDao {
    int insert(@Param("prescription") Prescription prescription);

    int insertSelective(@Param("prescription") Prescription prescription);

    int insertList(@Param("prescriptions") List<Prescription> prescriptions);

    int update(@Param("prescription") Prescription prescription);

    List<Prescription> findAll(@Param("prescription")Prescription prescription);

    int delPrescription(@Param("prescription")Prescription prescription);

    List<Prescription> getPrescriptionByUserId(@Param("userId") Integer userId,@Param("status") Integer status);
}
